<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:o="http://omnifaces.org/ui" 
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:p="http://primefaces.org/ui">

<h:form id="formEleveDetail">

	<div id="actions">
		<ul class="nav nav-tabs">
			<li class="#{fn:contains(menudetailtop, 'EleveDetailMenu') ? 'active' : ''}">
		  		<h:commandLink action="/eleveDetail">
		  			<span class="glyphicon glyphicon-eye-open"/> #{text['paiement.tab.detail']}
		  		</h:commandLink>
			</li>
			
			<c:if test="#{!empty paiementController.moisAPayes}">
			 	<li class="#{fn:contains(menudetailtop, 'PaiementFormMenu') ? 'active' : ''}">
			  		<h:commandLink action="#{paiementController.viewPaiementForm}"  rendered="#{p:ifGranted('ROLE_ADMIN')}">
			  			<span class="glyphicon glyphicon-plus"/>
							<c:choose>
								<c:when test="#{paiementController.edit}">
									#{text['paiement.tab.editPay']}
								</c:when>
								<c:otherwise>
									#{text['paiement.tab.newPay']}
								</c:otherwise>
							</c:choose>
			  		</h:commandLink>
				</li>
			</c:if>
			
		  	<li class="#{fn:contains(menudetailtop, 'PaiementListMenu') ? 'active' : ''}">
		  		<h:commandLink action="#{paiementController.viewPaiementList}">
		  			<span class="glyphicon glyphicon-th-list"/> #{text['paiement.tab.listPay']}
		  		</h:commandLink>
			</li>
			
			<li class="#{fn:contains(menudetailtop, 'PaiementEtatMenu') ? 'active' : ''}">
		  		<h:commandLink action="#{paiementController.viewPaiementEtat}">
		  			<span class="glyphicon glyphicon-saved"/> #{text['paiement.tab.etatPay']}
		  		</h:commandLink>
			</li>
			
		  	<li>
		  		<h:commandLink action="#{paiementController.cancel}">
		  			<span class="glyphicon glyphicon-hand-left"/> #{text['button.cancel']}
		  		</h:commandLink>
			</li>
		</ul>
     </div>
</h:form>
</html>